import { Category } from "@prisma/client";
import prisma from "../config/database";

class CategoryService {
  static async listCategories(): Promise<Category[]> {
    const list = await prisma.category.findMany();
    return list;
  }
}

export default CategoryService;
